<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" id="form2">
    <input type="submit">
</form>
<!--表单外提交-->
<input type="text" name="test" form="form2">
</body>
</html>